package order;

import junit.framework.Assert;
import junit.framework.TestCase;

public class OrderTest extends TestCase {

	public void test1(){
		Order o = new Order(1,2,3);
		double n1 = o.get1st();
		double n2 = o.get2nd();
		double n3 = o.get3rd();
		Assert.assertEquals(1, n1, 1e-14);
		Assert.assertEquals(2, n2, 1e-14);
		Assert.assertEquals(3, n3, 1e-14);		
	}
	
	public void test2(){
		Order o = new Order(2,3,1);
		double n1 = o.get1st();
		double n2 = o.get2nd();
		double n3 = o.get3rd();
		Assert.assertEquals(2, n1, 1e-14);
		Assert.assertEquals(3, n2, 1e-14);
		Assert.assertEquals(1, n3, 1e-14);		
	}
	
	
}
